import request from '@/utils/request'
import qs from 'qs'

// 新增
export const uploadImg = (data, query) => {
  return request({
    url: '/file/uploadImg?' + qs.stringify(query),
    method: 'POST',
    data,
    headers: {
      'Content-Type': 'multipart/form-data'
    }
  })
}

// /file/uploadFileBase64
export const uploadFileBase64 = data => {
  return request({
    url: '/file/uploadFileBase64',
    method: 'POST',
    data
  })
}
